import request from '@/utils/request'
import {getToken} from '@/utils/auth'
var token = getToken()
//列表
export function getDeviceList(data,pageData) {
    return request({
      url: '/device/page/'+pageData.pageNo+'/'+pageData.pageSize,
      method: 'post',
      headers:{'Content-Type':'application/json'},
      data
    })
  }
  export function getDeviceDetail(id) {
    return request({
      url: '/device/detail/'+id,
      method: 'get',
    })
  }
  //解绑
  export function getDeviceUnbinding(id) {
    return request({
      url: '/device/unbinding/'+id,
      method: 'get',
    })
  }
//   删除
export function getDeviceDelete(id) {
    return request({
      url: '/device/delete/'+id,
      method: 'get',
    })
  }
	//导出
	export function getTimeExpor(data) {
	  return request({
	    url: '/device/export',
	    method: 'post',
	    responseType:'blob',
	    data
	  })
	}
	
  